package cn.zhaoyuening.leasecloud.common.domain;

import java.io.Serializable;

/**
 * Created by Buynow on 2017/6/30.
 * 租赁设备
 */
public class Device implements Serializable {
    private String id;
    private String name;
    private String address;

    private DeviceType type;
    //设备所属供应商
    private Supplier supplier;
    //设备状态 1、离线 2、正忙 3、空闲 4、未定义(需要像设备查询)
    private Integer status;

    public Device(String id, Supplier supplier, DeviceType type, String name, String address, Integer status) {
        this.id = id;
        this.supplier = supplier;
        this.type = type;
        this.name = name;
        this.address = address;
        this.status = status;
    }

    public Device() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public DeviceType getType() {
        return type;
    }

    public void setType(DeviceType type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
